﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/admin.Master" AutoEventWireup="true" CodeBehind="Report.aspx.cs" Inherits="BlueMarineWebClient.Admin.Report" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="../Scripts/jsDatePick.min.1.3.js"> </script>
    <script type="text/javascript">
        window.onload = function() {
            new JsDatePick({
                useMode: 2,
                target: "TopMainContent_txtDate",
                dateFormat: "%d/%m/%Y"
            });
        };

    </script>
    <link rel="stylesheet" type="text/css" media="all" href="../Styles/jsDatePick_ltr.min.css" />
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="TopMainContent" runat="server">
    <form runat="server">
    
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
         Date: <asp:TextBox ID="txtDate" runat="server"  Width="100px"></asp:TextBox>
         <asp:Button ID="btnView" runat="server" Text="View" class="bluebutton" onclick="btnView_Click" />
                
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="0">
            <ProgressTemplate>
                <div style="bottom: 50%; position: fixed; right: 50%; z-index: 1000000;">
                    <center><img src="../images/load-indicator.gif" /></center>
                    Loading...
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
               
                <asp:GridView ID="gvReportCheckIn" runat="server" Width="100%" 
                             ForeColor="#333333" GridLines="None" AutoGenerateColumns="False">
                              <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="CheckInDate" DataFormatString="{0:d}" 
                                        HeaderText="Check-In Date" >
                            <ItemStyle HorizontalAlign="Center" Width="30%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CHECKIN" HeaderText="Quantity" >
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="TOTALPAYMENT" HeaderText="Payment" 
                                        DataFormatString="{0:c}" >
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:BoundField>
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#2C93A6" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>

                <asp:GridView ID="gvReportCheckOut" runat="server" Width="100%"
                          ForeColor="#333333" GridLines="None" AutoGenerateColumns="False">
                              <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="CheckOutDate" DataFormatString="{0:d}" 
                                        HeaderText="Check-Out Date">
                            <ItemStyle HorizontalAlign="Center" Width="30%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CHECKOUT" HeaderText="Quantity" >
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="TOTALPAYMENT" HeaderText="Payment" 
                                        DataFormatString="{0:c}" >
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:BoundField>
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#2C93A6" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnView" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
        <br />
    </form>
</asp:Content>